<?php
global $_RQ,$_AR;
$_RQ['op']=$_RQ['op']?$_RQ['op']:'main';
$return=array();

if($_RQ['op']=='main'){
	$id=$_RQ['id'];
	if(!id){
		exi('请先选择直播间','error');
	}
	$room=pdo_get('jy_cmslive_list',array('id'=>$id));
	$room['time']=date('Y-m-d H:i:s',$room['time']);
	$room['menu']=json_decode($room['menu'],true);
	$info=$this->getLiveInfo($room['url']);	

	//$info = array('status' => $apiResult['isPlay'], 'poster' => $apiResult['videoCoverUrl'], 'hls_url' => $apiResult['hlsVideoUrl']);
	$return['info']=$info;
	$return['room']=$room;
	//print_r($return['info']);exit();
	exi($return);
	}

?>